package com.api.user.service;
import com.api.user.model.Coupon;
import com.api.core.service.Service;
import com.api.core.response.Result;
import com.api.user.model.CouponAdd;
import com.api.user.model.CouponUse;

import java.util.Map;

/**
 * Created by wanghuiwen on 2021/04/12.
 */
public interface CouponService extends Service<Coupon> {
   Result list(Map<String, Object> params, String order, Integer page, Integer size);

   Result add(CouponAdd couponAdd);
   Result receive(Long couponId,Long userId);
   Result apply(CouponUse couponUse);
   Result listUser(Long userId);
   Result my(Long userId, String code, Map<String, Object> orderParams);

   Result delete(Long id);
}
